package com.lori.netshop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lori.netshop.service.ContentService;

@Controller
public class IndexController {
	@Autowired
	private ContentService contentServiceimp;
	
	@RequestMapping("/index")
	public String index(Model model){
		String findContents = contentServiceimp.findContents(89);
		model.addAttribute("ad1", findContents);
		return "index";
	}
}
